package com.sso.filter;

import lombok.Getter;

/**
 * @author hobo
 * @description
 */
@Getter
public enum ResultEnum {
	/**
	 *
	 */

	USER_NOT_EXIST(1, "用户不存在"),
	PASSWORD_ERROR(2, "密码错误"),
	SQL_ERROR(3, "添加用户失败"),
	CODE_ERROR(4, "验证码错误"),
	USER_HAS_EXIST(5, "用户名已经存在"),
	PARAMETER_ERROR(6, "参数注意必填项目！"),
	DELETE_ERROE(7, "删除失败"),
	SEARCH_ERROR(8, "查找失败"),
	SEND_ERROR(9, "验证码发送失败"),
	CODE_NOT_EXIST(10, "验证码不存在,请重新获取"),
	USERNAME_HAS_EXIST(11, "用户昵称已经存在"),
	IS_NOT_PERSONAL_OPERATION(12, "手机号错误,用户名不存在,修改密码失败"),
	No_relevant_information_was_found(13, "未查找到相关信息"),
	upload_has_failed(14, "单据上传失败"),
	PASSWORD_UPDATE_ERROR(15, "密码修改错误"),
	CAN_NOT_EDIT(16, "当前状态无法修改"),
	REPEATED_SUBMIT(17, "重复提交"),
	DATABASE_ERROR(18,"数据库操作异常"),



	WX_MENU_CREAT_FILED(60,"微信菜单创建失败" ),


	SUCCESS(100, "成功"),
	FILE_EMPTY(101, "文件为空"),
	HASH_NOTEQUAL(103, "哈希值对比不一致"),



	UNKNOW_EXEPTION(10000,"系统未知异常"),


	AUTHENTICATION_ERROR(401, "用户认证失败,请重新登录"),
	PERMISSION_DENNY(403, "权限不足"),
	NOT_FOUND(404, "url错误,请求路径未找到"),
	SERVER_ERROR(500, "服务器未知错误:%s"),
	BIND_ERROR(511, "参数校验错误:%s"),
	REQUEST_METHOD_ERROR(550, "不支持%s的请求方式");

	private Integer code;

	private String msg;

	ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
